package com.firefightingiot.firefightingiot.model;


import com.baomidou.mybatisplus.annotation.TableName;
import com.firefightingiot.firefightingiot.common.base.BasisEntity;

//@Data
@TableName("region")//行政区划表
public class Region extends BasisEntity {

    private String id;//行政区划编码
    private String name;//行政区划名称
    private String pid;//父级行政区划编码
    private String pname;//父级名称
    private String level;//等级
    private String allname;//行政区划往上共三级
    private String allid;//行政区划往上所有，中间逗号分隔

    public String getId() {
        return this.getString("id");
    }

    public void setId(String id) {
        this.put("id",id);
    }

    public String getName() {
        return this.getString("name");
    }

    public void setName(String name) {
        this.put("name",name);
    }

    public String getPid() {
        return this.getString("pid");
    }

    public void setPid(String pid) {
        this.put("pid",pid);
    }

    public String getPname() {
        return this.getString("pname");
    }

    public void setPname(String pname) {
        this.put("pname",pname);
    }

    public String getLevel() {
        return this.getString("level");
    }

    public void setLevel(String level) {
        this.put("level",level);
    }

    public String getAllname() {
        return this.getString("allname");
    }

    public void setAllname(String allname) {
        this.put("allname",allname);
    }

    public String getAllid() {
        return this.getString("allid");
    }

    public void setAllid(String allid) {
        this.put("allid",allid);
    }
}
